package com.winsdom.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 收款记录表
 * </p>
 *
 * @author 
 * @since 2025-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("payment_receipt")
public class PaymentReceipt implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收款记录ID
     */
    @TableId(value = "payment_id", type = IdType.AUTO)
    private Long paymentId;

    /**
     * 收款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime receiptTime;

    /**
     * 收款流水号
     */
    private String receiptSerial;

    /**
     * 支付流水号
     */
    private String paymentSerial;

    /**
     * 关联客户ID
     */
    private Long customerId;

    /**
     * 付款人
     */
    private String payerName;

    /**
     * 付款业主
     */
    private String payerCustomerName;

    /**
     * 付款方式:1-现金,2-支票,3-微信支付,4-支付宝
     */
    private Integer paymentMethod;

    /**
     * 收款人
     */
    private String payeeName;

    /**
     * 收款账号
     */
    private String payeeAccount;

    /**
     * 收款金额
     */
    private BigDecimal receiptAmount;

    /**
     * 已核销金额
     */
    private BigDecimal settledAmount;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态:0-处理中,1-成功,2-失败
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;


}
